/*
 * @Author: deliteam 462085920@qq.com
 * @Date: 2023-11-30 13:33:45
 * @Description:
 */

import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('press')
export class Press {
  @PrimaryGeneratedColumn('uuid')
  id: number;

  @Column({ nullable: true }) // link 字段可空
  link: string;

  @Column({ nullable: false })
  image: string;

  @Column({ nullable: true })
  description: string;

  @Column({ default: 0 })
  sorting: number;

  @Column()
  createdAt: Date;

  @Column()
  updatedAt: Date;
}
